In the previous video, you understood input actions and the activities available
in Studio to perform them. By the end of this video, you will be able to
understand input methods for UI interaction.
Let's get started. As you learned previously, all the input actions are presented using clicks or types. A human uses the mouse and
the keyboard for input. To replicate these actions, Studio supports
three input methods for performing input actions. They are, default method, send window messages,
and simulate type/click. Let's understand them in detail. Default method captures
the input given while interacting with the
UI element of the screen. For example, selecting
a UI element on the screen with the help
of a mouse or keyboard. Send window messages method performs similar actions
as the default method. This function captures actions performed using
keyboard and mouse. However, it is less
compatible with applications in comparison
to the default method. Simulate type/click. This method is also similar to default and send
window messages. The points which differentiate
it from the other two are speed and input source. This action is much faster
than default and send window messages and it does not capture input given
by the keyboard. These methods are
similar in nature. However, there are differences
in their performance. Let's have a look at the
comparison chart between these three input methods
based on various parameters. Compatibility. The
default method is 100 percent compatible. Given that it does exactly
what a human would do and send window messages method is
around 80 percent compatible. Simulate type/click does a
great job for web automation, but it has significant
limitations regarding compatibility
with desktop applications. Background. The default method doesn't work in the
background while both send window messages and simulate type/click methods
work in the background. Speed. Simulate method correctly identifies the controls
used by the target apps. It's speed is significantly higher than the speed of
the other two methods. Hotkeys. Only default and
send window message methods can send hotkeys while simulate type/click
doesn't. Empty field. Empty field is a property of
UI interacting activities. It is used to erase
the data already present in the input
area of the UI element. For example, a text
box containing previously filled data that is accessed repetitively
in the code. When the default or send
window message method is used, the user has to ensure that the empty field
property is checked for erasing the
already present data. On the other hand, simulate type/click method empties
the field by default. It is vital that the
user understands the differences between all three input methods
and when to use them. That's it for this video. The next item in this lesson is a video demonstration of
the three input methods. I would encourage you to try
repeating the steps on your own after watching the video.
Thank you for watching.